package com.yanle.pattern.singleton;

/**
 * @Description: 懒汉模式
 * @Author Richard
 * @Date 2018/4/1113:46
 */
public class LazySingleton {
    private static LazySingleton instance;

    private LazySingleton() {
    }

    public static LazySingleton getInstance() {
        if (null == instance) {
            instance = new LazySingleton();
        }
        return instance;
    }

}
